package net.qhzw.admin.mapper;

import net.qhzw.admin.domain.UserDto;
import net.qhzw.admin.entity.SysUser;
import net.qhzw.admin.pojo.SysUserVo;
import net.qhzw.admin.query.SysUserQuery;
import net.qhzw.common.model.JsonResult;

import java.util.List;

public interface SysUserMapper {

    int deleteByPrimaryKey(String id);

    int insert(SysUser record);

    int insertSelective(SysUser record);

    SysUser selectByPrimaryKey(String id);

    int updateByPrimaryKeySelective(SysUser record);

    int updateByPrimaryKey(SysUser record);


    /***
     * 根据用户名查询
     * @param username
     * @return
     */
    SysUserVo selectByUsername(String username);


    /***
     * 查询用户列表
     * @param query
     * @return
     */
    List<SysUserVo> selectList(SysUserQuery query);


    /***
     * 根据username 查询条数
     * @param username
     * @return
     */
    int selectCountByUsername(String username);

    SysUserVo selectUserVoKey(String id);


}
